<#include "../head.ftl">
<div class="page_title">销售机会管理</div>
<div class="button_bar">
    <button class="common_button" onclick="help('');">帮助</button>
    <button class="common_button" onclick="to('${base}/refer/queryBefore');">新建</button>
    <button class="common_button" onclick="document.forms[0].submit()" ;>查询</button>
</div>
<form action="${url}" method="get">
    <table class="query_form_table">
        <tr>
            <th>客户名称</th>
            <td><input type="text" name="name"/></td>
            <th>概要</th>
            <td><input type="text" name="outline"/></td>
            <th>联系人</th>
            <td><input type="text" name="contacts"/></td>
        </tr>
    </table>
    <input type="hidden" id="number" name="number" value=""/>
    <br/>
</form>
<table class="data_list_table">
    <tr>
        <th>编号</th>
        <th>客户名称</th>
        <th>概要</th>
        <th>联系人</th>
        <th>联系人电话</th>
        <th>创建时间</th>
        <th>操作</th>
    </tr>
<#list page.content as refer>
	    <tr>
            <td class="list_data_number">${refer.id}</td>
            <td class="list_data_text">${refer.name}</td>
            <td class="list_data_ltext">${refer.outline}</td>
            <td class="list_data_text">${refer.contacts}</td>
            <td class="list_data_text">${refer.telephone}</td>
            <td class="list_data_text">${refer.createtime}</td>
            <td class="list_data_op">
                <#if !refer.appointUser?exists>
                     <a href="${base}/refer/queryDispatch?id=${refer.id}">
                         <img title="指派" src="${base}/images/bt_linkman.gif" class="op_button"/>
                     </a>
                </#if>

                <a href="${base}/refer/queryBefore?id=${refer.id}">
                    <img title="编辑" src="${base}/images/bt_edit.gif" class="op_button"/>
                </a>
                <a href="${base}/refer/delete?id=${refer.id}">
                    <img title="删除" src="${base}/images/bt_del.gif" class="op_button"/>
                </a>
            </td>
        </tr>
</#list>
    <tr>
        <th colspan="7" class="pager">
<#include "../foot.ftl">